import Axios from 'axios'

const root = `http://192.168.1.100:8880`

export const URL = root

/**
 * 获取设备
 */
export function getOnlineDevices() {
  return Axios({
    url: `${root}/rfid/getOnlineDevices`,
  })
}

/**
 * 关闭
 */
export function closeWarning(info) {
  return Axios({
    url: `${root}/rfid/closeAlert?connId=`+info,
    method: 'GET'
  })
}
